import fetchRequest from "@/utils/request/fetch.ts";

export function chatCompletions(stream: any, messages: any) {
  return fetchRequest("/chat", {
    method: "POST",
    body: JSON.stringify({
      model: "gemma3:1b",
      messages: messages,
      stream: true,
    }),
    signal: stream,
  });
}
